all: projetoFinal

CC = mpicc
C_FLAGS = -g -Wall

projetoFinal.o: projetoFinal.c loadArchive.h generateAndSurch.h
	$(CC) $(C_FLAGS) -c projetoFinal.c

loadArchive.o: loadArchive.c loadArchive.h
	$(CC) $(C_FLAGS) -c loadArchive.c

generateAndSurch.o: generateAndSurch.c generateAndSurch.h
	$(CC) $(C_FLAGS) -c generateAndSurch.c

projetoFinal: projetoFinal.o loadArchive.o generateAndSurch.o
	$(CC) $(C_FLAGS) projetoFinal.o loadArchive.o generateAndSurch.o -o projetoFinal

clean:
	rm *.o projetoFinal
